import { createApp } from "vue";
import "@/assets/styles/reset.scss";
import "@/assets/styles/index.scss";
import "./tailwind.scss";
import App from "./App.vue";
import router from "./router";
import { setupStore } from "./stores/index";
import "amfe-flexible";
import "virtual:svg-icons-register";
import Vant from "vant";
import "vant/lib/index.css";
import "virtual:uno.css";

import SvgIcon from "@/components/SvgIcon/index.vue";
import ListCom from "@/components/ListCom/index.vue";
import TabListItem from "@/components/TabListItem/index.vue";
// import wx from 'weixin-js-sdk'

const app = createApp(App);

// app.config.globalProperties.$wx = wx

// import { inject } from 'vue';
// const { myGlobalMethod } = inject('myGlobalMethod');//注入全局方法---!!!这里不对，少$
// myGlobalMethod();

setupStore(app);
app.use(Vant);
app.use(router);
// 全局组件添加
app.component("svg-icon", SvgIcon);
app.component("ListCom", ListCom);
app.component("TabListItem", TabListItem);
app.mount("#app");
